package net.hn.hnms.biz.equipment.company.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.hn.hnms.biz.equipment.company.service.QueryStatsService;
import net.hn.hnms.sys.common.core.domain.R;
import net.hn.hnms.biz.equipment.domain.vo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 智呈物联 nzw
 * @date 2023/2/2
 */

@Api(value = "查询统计", tags = {"重大设备-查询统计"})
@RestController
@RequestMapping("/company/queryStats")
public class QueryStatsController {

    private QueryStatsService queryStatsService;

    @Autowired
    public void setQueryStatsService(QueryStatsService queryStatsService) {
        this.queryStatsService = queryStatsService;
    }

    @ApiOperation("水泵情况统计")
    @GetMapping("drainageStatistics")
    public R<List<DrainageStatisticsVO>> drainageStatistics(){

        return R.ok(queryStatsService.DrainageStatistics());
    }

    @ApiOperation("主通风情况统计")
    @GetMapping("fanStatistics")
    public R<List<FanStatisticsVO>> fanStatistics(){

        return R.ok(queryStatsService.fanStatistics());
    }

    @ApiOperation("斜井提升情况统计")
    @GetMapping("inclineShaftStatistics")
    public R<List<InclineShaftStatisticsVO>> inclineShaftStatistics(){

        return R.ok(queryStatsService.inclineShaftStatistics());
    }

    @ApiOperation("主煤流运输情况统计")
    @GetMapping("coalFlowShaftStatistics")
    public R<List<CoalflowStatisticsVO>> coalFlowShaftStatistics(){

        return R.ok(queryStatsService.coalFlowShaftStatistics());
    }

    @ApiOperation("综采情况统计")
    @GetMapping("thermalShockShaftStatistics")
    public R<List<ThermalshockStatisticsVO>> thermalShockShaftStatistics(){

        return R.ok(queryStatsService.thermalShockShaftStatistics());
    }

    @ApiOperation("综掘情况统计")
    @GetMapping("drivageShaftStatistics")
    public R<List<DrivageStatisticsVO>> drivageShaftStatistics(){

        return R.ok(queryStatsService.drivageShaftStatistics());
    }
}
